home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
compuserve-file-archive
/
16 Vendor Support
/
TX2BAS.DOC
< prev
next >
Wrap
Text File
|
2019-04-13
|
4KB
|
84 lines
The program TX2BAS.SEQ is a BASIC program which will convert a
SEQuential text LISTing into a RUNnable BASIC program in memory, ready for
you to SAVE it. It will work with either Tape or Disk SEQ files, and
erases itself after it has finished the conversion if you ask it to.
WARNING:
This will ONLY work on files which are written correctly. This
means that you MUST have your Compuserve options set so that you receive
in BOTH UPPER and lower cases. This can be done at page CIS 6. If you do
find a file which is in UPPER case only, then there is a program in this
database called filcon.img, use it to make the conversion of your file into lower
case mode before attempting to RUN TX2BAS.SEQ.
Before running this on your equipment, please note two special
lines of coding prefaced with REM's, lines 63104 and 63105. 63104 is the
line to use for TAPE files and 63105 is the line for DISK users. Delete the
REM at the beginning of the line which applies to your equipment, and you will
have the correct BASIC program!
The only other error you may run into with this program is when you
run across program lines which are more than 80 characters. This is rare
since most people who upload are aware of this kind of limitation and try to
keep away from the problem. If it happens, it will most likely CRASH
the program, but will NOT damage anything, you'll just not be able to
use that line as it stands. But you can recover from it. Use the cursor
keys and go up and change several of the BASIC commands into their proper
abbreviations, press RETURN, and then type in: GOTO63099. It should work
fine!
Here is another hint for using this program:
You can use it to add the ability to MERGE program lines into a program
already in memory, without losing those lines already there. As you know,
when you LOAD a new program, it kills
the previous program. This can be a real headache when you have 3 or 4
favorite subroutines which you have to type in all the time! Here is how to
use it:
1. create a tape/disk of SEQuentialized program lines
of your favorite subroutines like this:
A. LOAD in the program with the subroutine
B. identify the lines you want to be able to transport in
a MERGE.
C. In the DIRECT mode type in-
OPEN8,8,8,"0:filename,S,W"
CMD8:LISTxx-xxx
and then press RETURN.
For a tape, use:
OPEN1,1,1,"filename" CMD1:LISTxx-xxx
D. As soon as the cursor appears back on the screen you MUST
type
PRINT#1,CHR$(177):CLOSE1-for tape
PRINT#8:CLOSE8 for disk
E. That's all there is to it!
===============================
But if you are using a tape file, it MUST be closed with that CHR$(177).
You have to write your own end of file marker for a cassette read. For some
unknown reason, the 64 can't fine the end of a SEQ file on the tape. As
long as you make your own, you'll be just fine.
2. Now, to use a MERGE, LOAD in the TX2BAS.SEQ
3. Start programming
4. To MERGE: type in RUN60000, or whatever line number you use
for it.
5. Give it the name of the file you want MERGED.
6. Stand back and wait while it does all the work for you!
7. When it has finished, DO NOT erase the TX2BAS.SEQ! Leave
it in until you know you are finished with it.
8. Then merrily start programming away!
9. BEWARE: This technique works on line numbers just like you had
entered them from the keyboard, so all the rules about
REPLACING lines with a new one must be watched. You'll
find that the easiest way is just to avoid duplicate line numbers within all
of your MERGE files. I use a unique series of line numbers on all of my
favorite subroutines. Then there NEVER any problem with it!
I am sure you will enjoy this time-
saving technique.
Happy Downloading
and
Happy Merging!!
deb!